import 'admin/less/index.less';
import 'admin/libs/swiper/swiper.min.js';
import 'admin/libs/swiper/swiper.min.css';

//import 'admin/js/common/filter.js';

import pItems from 'admin/js/components/p-items.vue';
import pMakeup from 'admin/js/components/p-makeup.vue';
import pMakeupTmpl from 'admin/js/components/p-makeup-tmpl.vue';
import pVideo from 'admin/js/components/p-video.vue';
import pFaceChart from 'admin/js/components/p-face-chart.vue';
import pAbout from 'admin/js/components/p-about.vue';

new Vue({
    el: '.app',
    data(){
        return{
            leftBtn: {
                items:{
                    name: '商品设置',
                    type: 'pItems'
                },
                makeup:{
                    name: '试妆管理',
                    type: 'pMakeup'
                },
                makeupTmpl:{
                    name: '试妆材质管理',
                    type: 'pMakeupTmpl'
                },
                video:{
                    name: '视频列表',
                    type: 'pVideo'
                },
                faceChart:{
                    name: 'Face Chart',
                    type: 'pFaceChart'
                },
                about:{
                    name: '关于MAC',
                    type: 'pAbout'
                },
            },
            pCp: 'pItems',
            cover:false,
            actIndex: 0,
        }
    },
    mounted(){

    },
    methods: {
        page(type,index){
            this.pCp = type;
            this.actIndex = index;
        },
        showCover(type){
            this.cover = type;
        }
    },
    components: {
        pItems,
        pMakeup,
        pMakeupTmpl,
        pVideo,
        pFaceChart,
        pAbout
    },
    /*filters: {
        type2name: function(type){
            var name = '';
            switch (type){
                case 'MM':
                    name = '眉妆';
                    break;

                case 'YY':
                    name = '眼影';
                    break;

                case 'KH':
                    name = '唇妆';
                    break;

                case 'YX':
                    name = '眼线';
                    break;

                case 'JM':
                    name = '睫毛';
                    break;
            }
            return name;
        }
    }*/
});


